﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyFavoriteCommon.aspx.cs"
    Inherits="Home_AS_MyFavoriteCommon" %>

<%@ Import Namespace="Shopping.Model" %>
<div class="shoppingCart">
    <%
        if (_userFavorites != null && _userFavorites.Count > 0)
        {
            var tag = 1;
            foreach (UserFavorites info in _userFavorites)
            {
    %>
    <div class="row">
        <div class="num">
            <%=tag%>
        </div>
        <div class="goodname">
            <%=info.GoodsID%>
        </div>
        
        <div class="del">
            <a href="javascript:void(0);" class="delop" tag="<%=info.GoodsID %>"></a>
        </div>
    </div>
    <div class="">
        <input type="button" value="清空购物车" id="clearShopping" />
        <input type="button" value="去结算" id="btnPay" />
        <script type="text/javascript">
            BindShoppingCartEvent();
        </script>
    </div>
    <%
                
        tag += 1;
            }
        }
        else
        {
            Response.Write("购物车中还没有任何商品");
        } %>
</div>
